<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>jq</title>
	<script src="jquery.js"></script>
	
</head>
<style>
	
</style>


<body>
	<h1>aaaaaaaaaaaaaaaaaaaaaa</h1>
	<h1>bbbbbbbbbbbbbbbbbbbbbb</h1>
	<h1></h1>
</body>
<script>
	//$('h1:not(:empty)').css({'color':'#f00'}); //作用于h1
	$('h1:empty').html('sssssssssssssssss').css({'color':'#f00'});
</script>
</html>